<?php

/**
 * @author christian
 * @copyright 2011
 */

//echo "registrar ....";
//echo getcwd();
//echo basename(getcwd());
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDItinerary/MDItineraryEditDraw.php");
include_once("$ruta/star.php");

$idTourTrack=$_GET['codigo'];


$action="CRegistroTour.php";$name="formulario_registro";$method="post";$NAME="REGISTRO";
MDItineraryEditDraw::getInstance()->DrawHead($action,$name,$method,$NAME);

$maintable="tour_has_track";

$idTrack=CTourEditDraw::getInstance()->getAnyId($maintable,$mainfield,$idTourTrack,"TRACK_idTrack");


$mainfield="idPackTour";
//$table1="tour";
$subfield="TOUR_idTour";
 
$title="paquete";
$items = array("idPack"=>"id","NomPack"=>"Nombre del paquete");
MDItineraryEditDraw::getInstance()->DrawTextFillBox($title, $items, "pack", $idPack);




$title="General";
$items = array("idTour"=>"id","OriTour"=>"Nombre del paquete");
CTourEditDraw::getInstance()->DrawTextFillBox($title,$items, "Pack", $idPack);



MDItineraryEditDraw::getInstance()->DrawSubmmit("Actualizar");
MDItineraryEditDraw::getInstance()->DrawFoot();
include_once("$ruta/elements/foot.tpl");


?>


<div>

</div>